﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;

namespace Mang24k99.Model.SPECT
{
    [ActiveRecord(Table = "KT_SPECT_DETAILITEMS_History")]
    public partial class MKtSpectDetailitemsHistory : ActiveRecordBase
    {
        public static IList<MKtSpectDetailitemsHistory> SelectAll()
        {
            return (IList<MKtSpectDetailitemsHistory>)FindAll(typeof(MKtSpectDetailitemsHistory));
        }
        public static MKtSpectDetailitemsHistory SelectByPrimaryKey(object ID)
        {
            return (MKtSpectDetailitemsHistory)FindByPrimaryKey(typeof(MKtSpectDetailitemsHistory), ID);
        }
        public static IList<MKtSpectDetailitemsHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtSpectDetailitemsHistory>)FindAllByProperty(typeof(MKtSpectDetailitemsHistory), property, value);
        }
        public static IList<MKtSpectDetailitemsHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtSpectDetailitemsHistory>)SlicedFindAll(typeof(MKtSpectDetailitemsHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the SubjectNO.()
        /// </summary>
        /// <value>The SubjectNO.</value>
        [Property("SUBJECT_NO")]
        public int? SubjectNO
        {
            get
            {
                return _SubjectNO;
            }
            set
            {
                _SubjectNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the TITLE.()
        /// </summary>
        /// <value>The TITLE.</value>
        [Property("TITLE")]
        public string TITLE
        {
            get
            {
                return _TITLE;
            }
            set
            {
                _TITLE = value;
            }
        }


        /// <summary>
        /// Gets or sets the ADDRESS.()
        /// </summary>
        /// <value>The ADDRESS.</value>
        [Property("ADDRESS")]
        public string ADDRESS
        {
            get
            {
                return _ADDRESS;
            }
            set
            {
                _ADDRESS = value;
            }
        }


        /// <summary>
        /// Gets or sets the RelateAdd.()
        /// </summary>
        /// <value>The RelateAdd.</value>
        [Property("RELATE_ADD")]
        public string RelateAdd
        {
            get
            {
                return _RelateAdd;
            }
            set
            {
                _RelateAdd = value;
            }
        }


        /// <summary>
        /// Gets or sets the SubjectType.()
        /// </summary>
        /// <value>The SubjectType.</value>
        [Property("SUBJECT_TYPE")]
        public int? SubjectType
        {
            get
            {
                return _SubjectType;
            }
            set
            {
                _SubjectType = value;
            }
        }


        /// <summary>
        /// Gets or sets the OrderNO.()
        /// </summary>
        /// <value>The OrderNO.</value>
        [Property("ORDER_NO")]
        public int? OrderNO
        {
            get
            {
                return _OrderNO;
            }
            set
            {
                _OrderNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _SubjectNO;

        private string _TITLE;

        private string _ADDRESS;

        private string _RelateAdd;

        private int? _SubjectType;

        private int? _OrderNO;

        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}
